package com.iodemo;

import java.io.*;

public class CopyTest {
    public static void main(String[] args) {
        InputStream is = null;
        OutputStream os = null;
        try {
            is = new FileInputStream("/Users/edy/Desktop/file/jdk-8u321-windows-x64.exe");
            os = new FileOutputStream("/Users/edy/Desktop/file/Yzt");
            IOUntilsDemo.copy(os,is,1024 * 1024);

        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            IOUntilsDemo.close(is);
            IOUntilsDemo.close(os);
        }

    }


}
